package com.bingxue.edu.management.shop.model.entity;

import com.bingxue.edu.framework.common.model.BaseEntity;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.handler.JacksonTypeHandler;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@Table("shop_cart")
public class Cart extends BaseEntity {

    @Schema(description = "学生id")
    private String studentId;

    @Schema(description = "班级id")
    private String classId;

    @Schema(description = "课次id列表")
    @Column(typeHandler = JacksonTypeHandler.class)
    private List<Integer> lessonIndexes;
}
